#!/usr/bin/python3
# -*- coding: utf-8 -*-
""" 国际化提示信息 错误码

Attributes:
    __version__ (str): "0.0.1"
    __copyright__ (str): "Copyright (C) 2025 z"
    __license__ (str): "MIT"
    __author__ (str): "Z"
"""

from enum import Enum


class ErrorCode(Enum):
    """码表"""
    SUCCESS = "MSG_20000"
    # WARNING
    TOJENKINS = "MSG_60000"
    GETMYSQL = "MSG_60001"
    GETSEND = "MSG_60002"
    LARK_EVENT = "MSG_60003"
    LARK_OUT = "MSG_60006"
    WARNING_STREAM_REQUESTS = "MSG_60007"
    STREAM_OUT = "MSG_60008"
    WARNING_DISTRIBUTE = "MSG_60009"
    # ERROR
    PROMETHEUS_GET = "MSG_10000"
    ROBOT_TO_AI = "MSG_10001"
    ROBOT_DISTRIBUTE = "MSG_10002"

    CALLDB_GETMYSQL = "MSG_30002"
    CALLSEND_GETSEND_DING = "MSG_30003"
    CALLSEND_GETSEND_FEISHU = "MSG_30004"
    CALLSEND_GETSEND_SLACK = "MSG_30005"

    DING_REQUESTS = "MSG_50000"
    FEISHU_REQUESTS = "MSG_50001"
    JEKINS_REQUESTS = "MSG_50002"
    STREAM_REQUESTS = "MSG_50003"
    MYSQL_DB_ERROR = "MSG_50004"
    ALIYUN_CALL = "MSG_50005"
    DOMAIN_QUERY_MX = "MSG_MSG_50006"
    DOMAIN_QUERY_NS = "MSG_50007"
    DOMAIN_QUERY_DNS = "MSG_50008"

    # critical
    
    # POWER
    INVALID_INPUT = "MSG_40000"
    NETWORK_ERROR = "MSG_40001"
    # DEBUG
    DEBUG = "MSG_99999"


if __name__ == "__main__":
    print(ErrorCode.SUCCESS.value)

# 20000   info数据
# 40000   权限
# 10000   接口最前端error
# 30000   数据处理过程error
# 50000   数据最后端error
